<?php
use \yii\widgets\ActiveForm;
$this->title = '创建文章';
$this->params['breadcrumbs'][] = ['label'=>'文章','url'=>'/posts/index'];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="row">
    <div class="col-lg-9">
        <div class="panel-title box-title">
            <span>编辑文章</span>
        </div>
        <div class="panel-body">
            <?php $form = ActiveForm::begin();?>
                <?= \yii\helpers\Html::activeHiddenInput($model,'id') ?>
                <?= $form->field($model,'title')->textInput(['maxlength'=>true]);?>
                <?= $form->field($model,'cat_id')->dropDownList($cat);?>

                <?= $form->field($model,'label_img')->widget('common\widgets\file_upload\FileUpload',[
                    'config'=>[
                    ]
                ]); ?>

                <?= $form->field($model, 'content')->widget('common\widgets\ueditor\Ueditor',[
                    'options'=>[
                        'initialFrameWidth' => 850,
                        'initialFrameHeight' => 400,
                    ]
                ]) ?>
                <?= $form->field($model,'tags')->widget('common\widgets\tags\TagWidget');?>
            <div class="form-group">
                <?=\yii\helpers\Html::submitButton('发布',['class'=>'btn btn-success'])?>
            </div>
            <?php ActiveForm::end();?>
        </div>
    </div>
    <div class="col-lg-3">
        <div class="panel-title box-title">
            <span>注意事项</span>
        </div>
        <div class="panel-body">
            <p>1.oasadadadafs</p>
            <p>2.ssdacvfvdf</p>
        </div>
    </div>


</div>
